package com.shisfish.library.Impl;

import java.util.List;
import java.util.Map;

import org.springframework.context.ApplicationContext;

import com.shisfish.library.Inter.IBookShelfInter;
import com.shisfish.library.Model.BookShelf;
import com.shisfish.library.Utils.Global.GetACXmlUtils;

public class BookShelfImpl implements IBookShelfInter {

	private ApplicationContext ac = GetACXmlUtils.getACXml();
	private IBookShelfInter mapper = (IBookShelfInter) ac.getBean("bookShelfMapper");
	
	@Override
	public int insertOne(BookShelf t) {
		// TODO Auto-generated method stub
		return mapper.insertOne(t);
	}

	@Override
	public int insertAll(List<BookShelf> list) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int updateOne(BookShelf t) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int updateAll(List<BookShelf> list) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public List<BookShelf> selectById(int id) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<BookShelf> selectByKey(String key) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public int countAll() {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public List<BookShelf> selectAll() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public int deleteOneById(int id) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int deleteAllById(List<?> ids) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int deleteOneByKey(String key) {
		// TODO Auto-generated method stub
		return mapper.deleteOneByKey(key);
	}

	@Override
	public int deleteAllByKey(List<?> keys) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int countByEmployee(String employee) {
		// TODO Auto-generated method stub
		return mapper.countByEmployee(employee);
	}

	@Override
	public List<Map<String, Object>> selectByEmployeePage(String employee,
			int currentPage, int pageSize) {
		// TODO Auto-generated method stub
		return mapper.selectByEmployeePage(employee, currentPage, pageSize);
	}

	@Override
	public List<Map<String, Object>> maxCollect() {
		// TODO Auto-generated method stub
		return mapper.maxCollect();
	}

}
